
var HelloWorldLayer = cc.Layer.extend({
    sprite:null,
    ctor:function () {
        //////////////////////////////
        // 1. super init first
        this._super();

        var size = cc.winSize;

        cc.loader.loadJson(res.ChinaGeoJson,function(err,text){
            var geojson=L.geoJSON(text);

            for(var layer in geojson._layers){
                layer._updatePath();
            }
        });

        var helloLabel = new cc.LabelTTF("Hello World", "Arial", 38);

        helloLabel.x = size.width / 2;
        helloLabel.y = size.height / 2 + 200;

        this.addChild(helloLabel, 5);

        return true;
    }
});

var HelloWorldScene = cc.Scene.extend({
    onEnter:function () {
        this._super();
        var layer = new HelloWorldLayer();
        this.addChild(layer);
    }
});

